home *** CD-ROM | disk | FTP | other *** search
/ AmigActive 25 / AACD 25.iso / AACD / Graphics / PerfectPaint / rexx / box / Ectachrome.rx < prev    next >
Encoding:
Text File  |  2000-10-31  |  639 b   |  41 lines

  1. /* Box arexx test */
  2.  
  3.     options results
  4.   parse ARG Port x1 y1 x2 y2 b
  5.     ADDRESS value Port
  6.  
  7.     pp_GetDepth
  8.     D=result
  9.     IF D<24 then DO
  10.         pp_Warn 'This*script*is*only|for*24bits*Picture.'    
  11.         pp_PermitRefresh
  12.         Exit
  13.     END
  14.  
  15.     pp_UpdateUndoBox x1-1 y1-1 x2+1 y2+1
  16.  
  17.     pp_ComposeReqOff
  18.     pp_PicttoSpare
  19.     pp_EffectOn
  20.     pp_Displace 30
  21.     pp_BoxF x1 y1 x2 y2
  22.  
  23.     pp_Compose 1 100 0
  24.     pp_ConvInit 1 159 0
  25.     pp_Conv 0 2 4 5 4 2
  26.     pp_Conv 1 4 9 12 9 4
  27.     pp_Conv 2 5 12 15 12 5
  28.     pp_Conv 3 4 9 12 9 4
  29.     pp_Conv 4 2 4 5 4 2
  30.     pp_BoxF x1 y1 x2 y2    
  31.  
  32.     pp_Compose 0 100 0
  33.     pp_BoxF x1 y1 x2 y2
  34.  
  35.     pp_Spare
  36.     pp_Compose 4 100 0
  37.     pp_BoxF x1 y1 x2 y2
  38.  
  39.     pp_EffectOff
  40.     pp_ComposeReqOn
  41.